﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using WoBian.Entities.Interface;

namespace WoBian.Entities.Admin
{
    [Serializable]
    public class AdminUser:DbClass
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [DataMember]
        public string UserId { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// E-Mail
        /// </summary>
        [DataMember]
        public string EMailAddress { get; set; }

        /// <summary>
        /// 身份证号码
        /// </summary>
        [DataMember]
        public string IdNumber { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        [DataMember]
        public string IsLock { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [DataMember]
        public string MobilePhone { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [DataMember]
        public string NickName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [DataMember]
        public string Password { get; set; }

        /// <summary>
        /// 相片
        /// </summary>
        [DataMember]
        public byte[] Picture { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [DataMember]
        public string Remark { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [DataMember]
        public string TrueName { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [DataMember]
        public decimal Age { get; set; }

        #region 属性索引
        public const string USERID = "USERID";
        public const string NAME = "NAME";
        public const string PASSWORD = "PASSWORD";
        public const string NICKNAME = "NICKNAME";
        public const string TRUENAME = "TRUENAME";
        public const string MOBILEPHONE = "MOBILEPHONE";
        public const string EMAILADDRESS = "EMAILADDRESS";
        public const string IDNUMBER = "IDNUMBER";
        public const string ADDRESS = "ADDRESS";
        public const string ISLOCK = "ISLOCK";
        public const string AGE = "AGE";
        public const string PICTURE = "PICTURE";
        public const string REMARK = "REMARK";
        #endregion
    }
}
